package com.laolang.pluto.common.consts;

import lombok.experimental.UtilityClass;

/**
 * 通用全局常量
 *
 * @author laolang
 * @date 2021-07-2021/7/31 15:18
 */
@UtilityClass
public class GlobalConst {
    /**
     * 管理员租户ID与用户ID
     */
    public static final Long ADMIN_ID = 1L;

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * jwt token claims 中的 user key
     */
    public static final String LOGIN_USER_KEY = "login_user_key";


    public enum CrudModel {
        /**
         *
         */
        ADD, EDIT, DELETE, QUERY
    }
}
